<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
onLaunch(() => {
  console.log('App Launch')
})
onShow(() => {
  console.log('App Show')
  fetch('https://api.openai.com/v1/images/generations', {
    method: 'post',
    body: {
      model: 'dall-e-3',
      prompt: 'A cute baby sea otter',
      n: 1,
      size: '1024x1024',
    },
  })
})
onHide(() => {
  console.log('App Hide')
})
</script>
<style></style>
